package com.bs.bszhsq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 社区信息
 * </p>
 *
 * @author 章宇光
 * @since 2024-03-31
 */
@ApiModel(value = "Forum对象", description = "社区信息")
public class Forum implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("发布时间")
      @JsonFormat(pattern = "yyyy-MM-dd")
      private LocalDate addtime;

      @ApiModelProperty("标题")
      private String title;

      @ApiModelProperty("内容")
      private String content;

      @ApiModelProperty("姓名")
      private String name;

      @ApiModelProperty("赞")
      private Integer praise;

      @ApiModelProperty("踩")
      private Integer tread;
    
    public Long getId() {
        return id;
    }

      public void setId(Long id) {
          this.id = id;
      }


    public LocalDate getAddtime() {
        return addtime;
    }

    public void setAddtime(LocalDate addtime) {
        this.addtime = addtime;
    }

    public String getTitle() {
        return title;
    }

      public void setTitle(String title) {
          this.title = title;
      }
    
    public String getContent() {
        return content;
    }

      public void setContent(String content) {
          this.content = content;
      }
    
    public String getName() {
        return name;
    }

      public void setName(String name) {
          this.name = name;
      }
    
    public Integer getPraise() {
        return praise;
    }

      public void setPraise(Integer praise) {
          this.praise = praise;
      }
    
    public Integer getTread() {
        return tread;
    }

      public void setTread(Integer tread) {
          this.tread = tread;
      }

    @Override
    public String toString() {
        return "Forum{" +
              "id = " + id +
                  ", addtime = " + addtime +
                  ", title = " + title +
                  ", content = " + content +
                  ", name = " + name +
                  ", praise = " + praise +
                  ", tread = " + tread +
              "}";
    }
}
